﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UFSSMaster.Master" AutoEventWireup="true" CodeBehind="friends.aspx.cs" Inherits="UFSSWebApp.friends" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PageName" runat="server">
Friends
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Body" runat="server">
    <div class="menubarBox" style="width:300px">
        <hr />
        <span class="subheading">Updates - 
        <asp:HyperLink ID="hlManage" runat="server" NavigateUrl="~/managefriends.aspx">Manage</asp:HyperLink>
        </span>&nbsp;<hr />
    </div>
    <div class="Box" style="width:600px">
        <span class="subheading">Friend Requests</span><hr />
        <table>
            <tr>
                <td>
                   <asp:ListBox ID="lstRequest" runat="server" Height="67px" Width="157px" 
                        AutoPostBack="True">
                   </asp:ListBox>
                </td>
                <td valign="top">
                    <asp:Button ID="btnAccept" runat="server" Text="Accept" 
                        onclick="btnAccept_Click" />
                </td>
                <td valign="top">
                    <asp:Button ID="btnReject" runat="server" Text="Reject" 
                        onclick="btnReject_Click" />
                </td>
                <td valign="top"><asp:Button ID="btnViewProfile" runat="server" Text="View Profile" 
                        onclick="btnViewProfile_Click" /></td>
            </tr>
            <tr><td>
                <asp:Label ID="lblError" runat="server" ForeColor="Red"></asp:Label>
            </td>
            </tr>
        </table>
        <span class="subheading">Friend Requests</span><hr />
        <table>
            <tbody>
                <tr>
                    <td style="width:155px"; ><b>Total Messages:</b></td>
                    <td style="width:100px"; ><asp:Label ID="lblMessages" runat="server" Text="0"></asp:Label></td>
                    <td><asp:Button ID="btnViewMessages" runat="server" Text="View Messages" 
                            onclick="btnViewMessages_Click" /></td>
                </tr>
                <tr><td></td></tr>
            </tbody>
        </table>
        <span class="subheading">
        Friend's updates</span><hr />
        <asp:GridView ID="gvUpdates" runat="server" AutoGenerateColumns="False" 
            CellPadding="4" DataSourceID="sdsUpdates" EnableModelValidation="True" 
            ForeColor="#333333" GridLines="None">
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            <Columns>
                <asp:BoundField HeaderText="Friend" />
                <asp:BoundField HeaderText="Action" />
                <asp:BoundField HeaderText="Date" />
                <asp:HyperLinkField HeaderText="File" />
                <asp:BoundField HeaderText="Size" />
                <asp:BoundField HeaderText="DLs" />
            </Columns>
            <EditRowStyle BackColor="#999999" />
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        </asp:GridView>
        <asp:SqlDataSource ID="sdsUpdates" runat="server"></asp:SqlDataSource>
    </div>
</asp:Content>
